package org.laobai.user.client;

import org.laobai.user.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "user-service",path = "user")
public interface UserClient {

    @PostMapping("get-user-by-name")
    List<User> getUserByName(@RequestParam("name") String name);
}
